package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingProjectDto;
import com.zzyl.entity.NursingProject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description NursingProjectMapper
 * @Author wangwei
 * @Date 2024-08-23
 */
@Mapper
public interface NursingProjectMapper {
    /**
     *分页查询护理项目
     * @param name
     * @param status
     * @return
     */
    Page<NursingProject> getNursingProjectInfo(@Param("name") String name, @Param("status") Integer status);

    /**
     * 添加项目功能
     * @param nursingProject
     * @return
     */
    void addNursingProject(NursingProject nursingProject);

    /**
     * 根据ID获取护理项目
     * @param id
     * @return
     */
    NursingProject getProjectInfoByID(Integer id);

    /**
     * 更新护理项目信息
     * @param nursingProject
     * @return
     */
    void updateProjectInfo(NursingProject nursingProject);

    /**
     * 根据ID修改护理项目的状态
     * @param id
     * @param status
     * @return
     */
    void updateStatus(@Param("id") Long id, @Param("status") Integer status);

    /**
     * 根据ID删除护理项目
     * @param id
     * @return
     */
    void deleteProjectByID(Long id);

    /**
     * 获取所有的护理项目信息
     * @return
     */
    List<NursingProjectDto> getAllProjectInfo();
}
